//
//  ViewController.m
//  HWTextStepperDemo
//
//  Created by LiTengFei on 15/3/9.
//  Copyright (c) 2015年 LiTengFei. All rights reserved.
//

#import "ViewController.h"
#import "HWTextStepper.h"
@interface ViewController () <HWTextStepperDelegate>

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    HWTextStepper * stepper = [[HWTextStepper alloc]initWithFrame:CGRectMake(30,100 , 100, 80)];
    stepper.delegate = self;
    stepper.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:stepper];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)textStepper:(HWTextStepper *)textStepper didValueChanged:(NSInteger)value{
    NSLog(@"%d",value);
}
@end
